package chap9;

import chap9.Animal;

public class Cow extends Animal {
    public Cow(String name, int id) {
        super(name, id);
    }

    @Override
    public void eat() {
        System.out.println( name +"吃");
    }

    @Override
    public void sleep() {
        System.out.println( name + "睡");

    }

    @Override
    public void introduction() {
        System.out.println( "我是" + id + name  );

    }

}
